package com.huangkailong.designpattern.decarator;

/**
 * 煎饼装饰器.
 *
 * @author huangkl
 * @since 1.0.0
 */
public abstract class PancakeDecorator implements Pancake {
    private final Pancake pancake;

    public PancakeDecorator(Pancake pancake) {
        this.pancake = pancake;
    }

    @Override
    public String getMsg() {
        return pancake.getMsg();
    }

    @Override
    public Double getPrice() {
        return pancake.getPrice();
    }
}
